package com.biz.model.Hmodel.basic;

import javax.persistence.*;
import java.sql.Timestamp;
import java.util.Date;

/**
 * Created by ZK123 on 2017/6/5 0005.
 */
@Entity
@Table(name = "base_mebactivity_approve", schema = "community", catalog = "")
public class TBaseMebactivityApprove {
    private String id;
    private String mainId;
    private String approveUserId;
    private Date approveTime;
    private String notes;
    private Integer state;

    @Id
    @Column(name = "id")
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    @Basic
    @Column(name = "mainId")
    public String getMainId() {
        return mainId;
    }

    public void setMainId(String mainId) {
        this.mainId = mainId;
    }

    @Basic
    @Column(name = "approveUserId")
    public String getApproveUserId() {
        return approveUserId;
    }

    public void setApproveUserId(String approveUserId) {
        this.approveUserId = approveUserId;
    }

    @Basic
    @Column(name = "approveTime")
    public Date getApproveTime() {
        return approveTime;
    }

    public void setApproveTime(Date approveTime) {
        this.approveTime = approveTime;
    }

    @Basic
    @Column(name = "notes")
    public String getNotes() {
        return notes;
    }

    public void setNotes(String notes) {
        this.notes = notes;
    }

    @Basic
    @Column(name = "state")
    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        TBaseMebactivityApprove that = (TBaseMebactivityApprove) o;

        if (id != null ? !id.equals(that.id) : that.id != null) return false;
        if (mainId != null ? !mainId.equals(that.mainId) : that.mainId != null) return false;
        if (approveUserId != null ? !approveUserId.equals(that.approveUserId) : that.approveUserId != null)
            return false;
        if (approveTime != null ? !approveTime.equals(that.approveTime) : that.approveTime != null) return false;
        if (notes != null ? !notes.equals(that.notes) : that.notes != null) return false;
        if (state != null ? !state.equals(that.state) : that.state != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = id != null ? id.hashCode() : 0;
        result = 31 * result + (mainId != null ? mainId.hashCode() : 0);
        result = 31 * result + (approveUserId != null ? approveUserId.hashCode() : 0);
        result = 31 * result + (approveTime != null ? approveTime.hashCode() : 0);
        result = 31 * result + (notes != null ? notes.hashCode() : 0);
        result = 31 * result + (state != null ? state.hashCode() : 0);
        return result;
    }
}
